package com.sc.study.foundation.service;

import java.util.List;

import com.sc.common.core.domain.entity.SysDept;
import com.sc.study.foundation.domain.ScSubjectTeacher;

/**
 * 课程授课老师Service接口
 *
 * @author sc
 * @date 2022-02-27
 */
public interface IScSubjectTeacherService {


    /**
     * 查询课程授课老师
     *
     * @param id 课程授课老师主键
     * @return 课程授课老师
     */
    public ScSubjectTeacher selectScSubjectTeacherById(Long id);

    /**
     * 查询课程授课老师列表包含老师和科目
     *
     * @param scSubjectTeacher 课程授课老师
     * @return 课程授课老师集合
     */
    public List<ScSubjectTeacher> selectScSubjectTeacherList(ScSubjectTeacher scSubjectTeacher);


    /**
     * 新增课程授课老师
     *
     * @param scSubjectTeacher 课程授课老师
     * @return 结果
     */
    public int insertScSubjectTeacher(ScSubjectTeacher scSubjectTeacher);

    /**
     * 修改课程授课老师
     *
     * @param scSubjectTeacher 课程授课老师
     * @return 结果
     */
    public int updateScSubjectTeacher(ScSubjectTeacher scSubjectTeacher);

    /**
     * 批量删除课程授课老师
     *
     * @param ids 需要删除的课程授课老师主键集合
     * @return 结果
     */
    public int deleteScSubjectTeacherByIds(Long[] ids);

    /**
     * 删除课程授课老师信息
     *
     * @param id 课程授课老师主键
     * @return 结果
     */
    public int deleteScSubjectTeacherById(Long id);

    /**
     * 构建前端所需要下拉树结构包含老师
     *
     * @param depts 部门列表
     * @return 下拉树结构列表
     */
    List<SysDept> buildDeptTreeSelectIncludeTeacher(List<SysDept> depts,Long subId);
}
